-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Replace columnHasNulls with row stats #11841
base: main
Are you sure you want to change the base?
feat: Replace columnHasNulls with row stats #11841
Conversation
✅ Deploy Preview for meta-velox canceled.
|
@@ -823,7 +823,8 @@ class RowContainer { | |||
|
|||
/// Returns true if specified column may have nulls, false otherwise. | |||
inline bool columnHasNulls(int32_t columnIndex) const { | |||
return columnHasNulls_[columnIndex]; | |||
return columnStats(columnIndex).has_value() && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
s/columnHasNulls/columnMayHaveNulls/
!columnStats(columnIndex).has_value() || columnStats(columnIndex)->nullCount() > 0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As @tanjialiang suggested, I'll separate the nullCount when invalidating columnStats, so that we don't need to check it here.
@@ -567,7 +562,8 @@ void RowContainer::store( | |||
decoded, | |||
rows, | |||
isKey, | |||
offsets_[column]); | |||
offsets_[column], | |||
column); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is also change in #11527, FYI.
Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the information. I see it's already merged. Let me rebase.
PR to address #11741
In the case of erasure, columnStats is invalidated so optimizations for hasNull is turned off.